package string;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-10-06
 * Time: 10:55
 */
public class Test_Constructor {
    public static void main(String[] args) {
        //通过构造器来创建对象：
        String s1 = new String();  //底层是一个字符数组value.空构造器时value数组是一个空串：“”
        String s2 = new String("abc");  //value数组那么就是['a','b','c']了
        String s3 = new String(new char[]{'a','b','c'});
    }
}
